package com.etoak;

import com.etoak.service.User;
import com.etoak.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class CxfSpringClient {
    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("classpath:spring-cxf.xml");
        UserService userService = ac.getBean(UserService.class);

        User user = userService.queryById(1);
        System.out.println(user);
    }
}
